#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n = 0;
    scanf("%d", &n);
    int* arr = (int*)malloc(sizeof(int) * n);

    for (int i = 0; i < n; i++)
    {
        scanf("%d", arr + i);
    }

    int record[501] = { 0 };
    int* io = (int*)malloc(sizeof(int) * n);

    int j = 0;
    for (int i = 0; i < n; i++)
    {
        if (record[arr[i]] != 1)
        {
            record[arr[i]] = 1;
            io[j] = arr[i];
            j++;
        }
    }

    for (int i = 0; i < j; i++)
    {
        for (int k = 0; k < j - i - 1; k++)
        {
            if (io[k] > io[k + 1])
            {
                int tmp = io[k];
                io[k] = io[k + 1];
                io[k + 1] = tmp;
            }
        }
    }

    for (int i = 0; i < j; i++)
    {
        printf("%d\n", io[i]);
    }


    return 0;
}